package init.luoyu.action.chapter3;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;

/**
 * @author LuoYu
 * 2020/11/22
 **/
public class Demo {

    public static void main(String[] args) {


        List<String> list = Arrays.asList("55", "22", "33");

        list.sort(String::compareTo);




        Function<String,String> function = (String)->list.get(0);

        function.andThen(Demo::check);





    }


    public static String check(String name){
        return "My "+name;
    }


}
